<%@ page contentType="text/html; charset=UTF-8" language="java" isELIgnored="false" %>
<%String path = request.getContextPath();%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--<!DOCTYPE html>--%>
<html>
<head>
    <meta charset="UTF-8">
    <title>员工业绩</title>
    <link type="text/css" rel="stylesheet"
          href="${pageContext.request.contextPath}/admin/car/fontsawesome/css/font-awesome.css"/>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/admin/car/css/datepicker.css"/>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/admin/car/css/style.css"/>
</head>
<body>
<div class="main_box">
    <form action="" method="post">
        <label class="f_left">开始日期：</label>
        <div class="date_box">
            <input type="text" name="firstDate" id="start_date" readonly/>
            <i class="fa fa-calendar"></i>
        </div>
        <label class="f_left">结束日期：</label>
        <div class="date_box">
            <input type="text" name="lastDate" id="end_date" readonly/>
            <i class="fa fa-calendar"></i>
        </div>
        <input type="button" value="搜索" class="btn blue_btn submit"/>
    </form>
    <form action="#" method="post" id="record_form">
        <div class="search_box clearfix" style="padding-top:20px;">
            <div class="staff_info clearfix">
                <label>当前员工：</label>
                <span class="f_left">${em.z_name}</span>
                <label>总提成：</label>
                <span class="f_left"><cite>2045.40000</cite>元</span>
            </div>
            <input type="button" value="搜索" class="btn blue_btn submit"/>
            <input type="button" value="导出员工业绩" class="btn btn_info"/>
        </div>
    </form>
    <div class="cont_box">
        <ul class="tab_tit clearfix">
            <li>施工业绩</li>
            <li>销售业绩</li>
            <li>储值卡业绩</li>
            <li>年卡业绩</li>
        </ul>
        <dl class="tab_conbox">
            <!--施工业绩-->
            <dd>
                <div class="achiev">施工总提成：<span>899999元</span></div>
                <table border="0" cellspacing="0" cellpadding="0" class="table" id="table_box">
                    <thead>
                    <tr>
                        <th>订单号</th>
                        <th>服务项目</th>
                        <th>提成</th>
                        <th>服务收费</th>
                        <th>会员</th>
                        <th>支付方式</th>
                        <th>时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <c:forEach items="${orders}" var="orders">
                        <tr>
                            <td>${orders.e_order_number}</td>
                            <td>${orders.f_service_name}</td>
                            <td>${orders.e_money * 0.2}</td>
                            <td>${orders.e_money}</td>
                            <td>${orders.e_phone}</td>
                            <td>${orders.e_Payment_method}</td>
                            <td>${orders.e_Billig_date}</td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </dd>
            <!--销售业绩-->
            <dd>
                <div class="achiev">销售总提成：<span>899999元</span></div>
                <table border="0" cellspacing="0" cellpadding="0" class="table">
                    <thead>
                    <tr>
                        <th>订单号</th>
                        <th>服务项目</th>
                        <th>提成</th>
                        <th>服务收费</th>
                        <th>时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <c:forEach items="${orders}" var="orders">
                    <tr>
                        <td>${orders.e_order_number}</td>
                        <td>${orders.f_service_name}</td>
                        <td>${orders.e_money * 0.2}</td>
                        <td>${orders.e_money}</td>
                        <td>${orders.e_Billig_date}</td>
                    </tr>
                    </tbody>
                    </c:forEach>
                </table>
            </dd>
            <!--储值卡业绩-->
            <dd>
                <div class="achiev">储值卡总提成：<span>998元</span></div>
                <table border="0" cellspacing="0" cellpadding="0" class="table">
                    <thead>
                    <tr>
                        <th>会员</th>
                        <th>卡种</th>
                        <th>充值类型</th>
                        <th>提成</th>
                        <th>卡价值</th>
                        <th>时间</th>
                    </tr>
                    </thead>
                    <c:forEach items="${orders}" var="orders">
                        <tbody>
                        <tr>
                            <td>${orders.e_phone}</td>
                            <td>都市储值卡</td>
                            <td>${orders.e_Payment_method}</td>
                            <td>${orders.e_money * 0.2}</td>
                            <td>${orders.e_money}</td>
                            <td>${orders.e_Billig_date}</td>
                        </tr>
                        </tbody>
                    </c:forEach>
                </table>
            </dd>
            <!--年卡业绩-->
            <dd>
                <div class="achiev">年卡总提成：<span>899999元</span></div>
                <table border="0" cellspacing="0" cellpadding="0" class="table">
                    <thead>
                    <tr>
                        <th>会员</th>
                        <th>提成</th>
                        <th>充值数量</th>
                        <th>时间</th>
                    </tr>
                    </thead>
                    <c:forEach items="${orders}" var="orders">
                        <tbody>
                        <tr>
                            <td>${orders.e_phone}</td>
                            <td>${orders.e_money * 0.2}</td>
                            <td>${orders.e_money}</td>
                            <td>${orders.e_Billig_date}</td>
                        </tr>
                        </tbody>
                    </c:forEach>
                </table>
            </dd>
        </dl>
    </div>
</div>
<!--javascript include-->
<script src="${pageContext.request.contextPath}/admin/car/js/jquery-2.2.1.min.js"></script>
<script src="${pageContext.request.contextPath}/admin/car/js/jquery.dataTables.min.js"></script>
<script src="${pageContext.request.contextPath}/admin/car/js/bootstrap-datepicker.js"></script>
<script src="${pageContext.request.contextPath}/admin/car/js/jquery.validate.min.js"></script>
<script src="${pageContext.request.contextPath}/admin/car/js/other.js"></script>
<script>
    $(function () {
        $.jqtab(".tab_tit", ".tab_conbox", "click");
        $(".submit").click(function () {
            $.ajax({
                type: "post",
                url: "search_Staff.html",
                data: {},
                success: function (data) {
                    $(".tab_conbox").remove();
                    $(".cont_box").append(data);
                    $.jqtab(".tab_tit", ".tab_conbox", "click");

                },
                error: function (data) {
                    alert(data);
                }
            });
        });
    });
</script>
</body>
</html>
